package com.github.aloxc.plugin.restplus.listener;


import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.Messages;
import com.intellij.openapi.util.IconLoader;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
/**
 *
 * @author leero
 */
public class AddUrlListener extends MouseAdapter {
    private Project project;
    public AddUrlListener(Project project) {
        this.project = project;
    }

    @Override
    public void mouseClicked(MouseEvent e) {
        super.mouseClicked(e);
        Messages.showMessageDialog("该功能还未开发，请等待下个版本",
                "添加外部请求", IconLoader.getIcon("/icons/new.png"));
//        Project project = event.getProject();
//        Setting setting = new Setting();
//        int height = 440;
//        setting.setMaximumSize(new Dimension(700,height));
//        setting.setMinimumSize(new Dimension(700,height));
//        setting.setPreferredSize(new Dimension(700,height));
//
//        VDialog dialog = new VDialog(null, setting,
//                new Dimension(700,height),
//                new Dimension(700,height),
//                new Dimension(700,height),
//                IconLoader.getIcon("/icons/setting.png"),
//                "全局参数设置"
//        );
//        setting.setDialog(dialog);
//        dialog.setVisible(true);
    }

}
